<template>
  <div id="person">
    <div class="banner">
      <img src="../../assets/person.png" alt="">
    </div>
    <div class="person">
      <img src="../../assets/per.png" alt="用户头像">
      <div class="name">时光时光</div>
    </div>
    <div class="content">
      <div class="xx"></div>
      <router-link
      class="men"
      tag="div"
      :to="{name: 'Order'}">
        <div class="left">
          <img src="../../assets/wdedingdan.png" alt="">
        </div>
        <div class="right">
          <p>我的订单</p>
          <img src="../../assets/youjiantou.png" alt="右箭头">
        </div>
      </router-link>
      <router-link
      class="men"
      tag="div"
      :to="{name: 'Discount'}">
        <div class="left">
          <img src="../../assets/wdeyouhui.png" alt="">
        </div>
        <div class="right">
          <p>我的优惠</p>
          <div class="icon"></div>
          <img src="../../assets/youjiantou.png" alt="右箭头">
        </div>
      </router-link>
    </div>
    <div class="men">
      <div class="left">
          <img src="../../assets/yaoqinghaoyoude.png" alt="">
        </div>
        <div class="right">
          <p>邀请好友得优惠券</p>
          <img src="../../assets/youjiantou.png" alt="右箭头">
        </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Personal',
  created () {
    document.title = '个人中心'
  }
}
</script>

<style lang='scss' scoped>
#person{
  width: 100%;
  height: 100%;
  .banner{
    height: 42.66vw;
    img{
      width: 100%;
      height: 100%;
    }
  }
  .person{
    padding: 0 3.46vw;
    height: 21.06vw;
    background-color: #fff;
    display: flex;
    align-items: center;
    img{
      width: 13.06vw;
      height: 13.06vw;
      margin-right: 2.66vw;
    }
    .name{
      font-size: 5.06vw;
      font-family: SourceHanSansCN-Bold;
      font-weight: bold;
      color: rgba(22,22,22,1);
    }
  }
  .content{
    padding: 4vw 0;
    position: relative;
    .xx{
      width: 87%;
      height: 1px;
      background-color: #eee;
      position: absolute;
      top: 18.56vw;
      right: 0;
    }
  }
  .men{
      padding: 0 3.46vw;
      height: 14.66vw;
      background-color: #fff;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .left{
        img{
          width: 6.66vw;
          height: 6.66vw;
          margin-right: 3vw;
        }
      }
      .right{
        width: 100%;
        height: 100%;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        p{
          font-size: 4.53vw;
          font-family: SourceHanSansCN-Regular;
          font-weight: 400;
          color: rgba(22,22,22,1);
        }
        .icon{
          position: absolute;
          right: 5vw;
          top: 6.2vw;
          border-radius: 1vw;
          width: 1.86vw;
          height: 1.86vw;
          background-color: #ff0000;
        }
        img{
          width: 2.4vw;
          height: 4.26vw;
        }
      }
    }
}
</style>
